﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;


namespace P2PLib.Client.DataModel
{
    [Serializable]
    public class SharedFileLibrary
    {
        private DateTime createdTime;
        private List<string> dirs;
        private List<LocalFileInfo> files;
        


        public SharedFileLibrary()
        {
            this.files = new List<LocalFileInfo>();
            this.dirs = new List<string>();
            this.createdTime = DateTime.Now;
        }

        public SharedFileLibrary(List<string> dirs)
        {
            this.files = new List<LocalFileInfo>();
            this.dirs = dirs;
            this.createdTime = DateTime.Now;
        }

        public List<LocalFileInfo> Files
        {
            get { return files; }
            set { files = value; }
        }

        public DateTime CreatedTime
        {
            get
            {
                return createdTime;
            }
            set
            {
                createdTime = value;
            }
        }

        public List<string> Dirs
        {
            get
            {
                return dirs;
            }
            set
            {
                this.dirs = value;
            }
        }
    }
}
